dojo.declare("DBlockDoorPg", wm.Page, {
start: function() {
},
"preferredDevice": "desktop",
lvProjectSuccess: function(inSender, inDeprecated) {
var item = this.lookupProjects.dataSet.getItem(0);
this.lookupProjects.setDataValue(item);
},
blockLiveVariable1Success: function(inSender, inDeprecated) {
var item = this.lookupBlocks.dataSet.getItem(0);
this.lookupBlocks.setDataValue(item);
},
_end: 0
});

DBlockDoorPg.widgets = {
lvProject: ["wm.LiveVariable", {"inFlightBehavior":"executeLast","type":"com.servicelivedb.data.Project"}, {"onSuccess":"lvProjectSuccess"}, {
liveView: ["wm.LiveView", {"dataType":"com.servicelivedb.data.Project","view":[{"caption":"ProjectId","sortable":true,"dataIndex":"projectId","type":"java.lang.Integer","displayType":"Number","required":true,"readonly":true,"includeLists":true,"includeForms":true,"order":0,"subType":null},{"caption":"ProjectName","sortable":true,"dataIndex":"projectName","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":1,"subType":null},{"caption":"Address","sortable":true,"dataIndex":"address","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":2,"subType":null},{"caption":"Active","sortable":true,"dataIndex":"active","type":"java.lang.Boolean","displayType":"CheckBox","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":3,"subType":null},{"caption":"PrimaryPhone","sortable":true,"dataIndex":"primaryPhone","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":4,"subType":null},{"caption":"SecondaryPhone","sortable":true,"dataIndex":"secondaryPhone","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":5,"subType":null},{"caption":"Email","sortable":true,"dataIndex":"email","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":6,"subType":null},{"caption":"Website","sortable":true,"dataIndex":"website","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":7,"subType":null},{"caption":"Description","sortable":true,"dataIndex":"description","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":8,"subType":null},{"caption":"Image","sortable":true,"dataIndex":"image","type":"byte","displayType":"Number","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":9,"subType":null}]}, {}]
}],
blockLiveVariable1: ["wm.LiveVariable", {"type":"com.servicelivedb.data.Block"}, {"onSuccess":"blockLiveVariable1Success"}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"lookupProjects.selectedItem.projectId","targetProperty":"filter.project.projectId"}, {}]
}],
liveView: ["wm.LiveView", {"dataType":"com.servicelivedb.data.Block","related":["project"],"view":[{"caption":"BlockId","sortable":true,"dataIndex":"blockId","type":"java.lang.Integer","displayType":"Number","required":true,"readonly":true,"includeLists":true,"includeForms":true,"order":3000,"subType":null,"widthUnits":"px"},{"caption":"BlockName","sortable":true,"dataIndex":"blockName","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":3001,"subType":null,"widthUnits":"px"},{"caption":"ProjectName","sortable":true,"dataIndex":"project.projectName","type":"java.lang.String","displayType":"Text","required":false,"widthUnits":"px","includeLists":true,"includeForms":true,"order":4001}]}, {}]
}],
doorLiveVariable1: ["wm.LiveVariable", {"type":"com.servicelivedb.data.Door"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"lookupBlocks.selectedItem","targetProperty":"filter.block"}, {}]
}],
liveView: ["wm.LiveView", {"dataType":"com.servicelivedb.data.Door","related":["block"],"view":[{"caption":"DoorId","sortable":true,"dataIndex":"doorId","type":"java.lang.Integer","displayType":"Number","required":true,"readonly":true,"includeLists":true,"includeForms":true,"order":0,"subType":null},{"caption":"DoorName","sortable":true,"dataIndex":"doorName","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":1,"subType":null},{"caption":"BlockId","sortable":true,"dataIndex":"block.blockId","type":"java.lang.Integer","displayType":"Number","required":true,"readonly":true,"includeLists":true,"includeForms":true,"order":0,"subType":null},{"caption":"BlockName","sortable":true,"dataIndex":"block.blockName","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":1,"subType":null}]}, {}]
}],
blockDialog: ["wm.DesignableDialog", {"buttonBarId":"buttonBar","containerWidgetId":"containerWidget","desktopHeight":"132px","height":"132px","title":"block","width":"500px"}, {}, {
containerWidget: ["wm.Container", {"_classes":{"domNode":["wmdialogcontainer","MainContent"]},"autoScroll":true,"height":"100%","horizontalAlign":"left","padding":"5","verticalAlign":"top","width":"100%"}, {}, {
blockLiveForm1: ["wm.LiveForm", {"alwaysPopulateEditors":true,"fitToContentHeight":true,"height":"62px","horizontalAlign":"left","liveEditing":false,"margin":"4","verticalAlign":"top"}, {"onSuccess":"blockLivePanel1.popupLiveFormSuccess"}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"blockDojoGrid.selectedItem","targetProperty":"dataSet"}, {}]
}],
blockNameEditor1: ["wm.Text", {"caption":"BlockName","captionSize":"140px","changeOnKey":true,"dataValue":"","desktopHeight":"26px","emptyValue":"emptyString","formField":"blockName","height":"26px","width":"100%"}, {}],
lookup1: ["wm.Lookup", {"autoDataSet":false,"caption":"Project","captionSize":"140px","dataType":"com.servicelivedb.data.Project","dataValue":undefined,"desktopHeight":"26px","displayField":"projectName","formField":"project","height":"26px","width":"100%"}, {}, {
binding: ["wm.Binding", {}, {}, {
dataFieldWire: ["wm.Wire", {"source":"lookup1.liveVariable","targetProperty":"dataSet"}, {}],
wire: ["wm.Wire", {"expression":undefined,"source":"lookupProjects.selectedItem","targetProperty":"defaultInsert"}, {}],
wire1: ["wm.Wire", {"expression":undefined,"source":"lvProject","targetProperty":"dataSet"}, {}]
}]
}]
}]
}],
buttonBar: ["wm.Panel", {"_classes":{"domNode":["dialogfooter"]},"border":"1,0,0,0","desktopHeight":"32px","enableTouchHeight":true,"height":"32px","horizontalAlign":"right","layoutKind":"left-to-right","mobileHeight":"40px","verticalAlign":"top","width":"100%"}, {}, {
blockSaveButton: ["wm.Button", {"caption":"Save","height":"100%","margin":"4"}, {"onclick":"blockLiveForm1.saveDataIfValid"}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"source":"blockLiveForm1.invalid","targetId":null,"targetProperty":"disabled"}, {}]
}]
}],
blockCancelButton: ["wm.Button", {"caption":"Cancel","height":"100%","margin":"4"}, {"onclick":"blockDialog.hide","onclick1":"blockLiveForm1.cancelEdit"}]
}]
}],
doorDialog: ["wm.DesignableDialog", {"buttonBarId":"buttonBar","containerWidgetId":"containerWidget1","desktopHeight":"132px","height":"132px","title":"door","width":"500px"}, {}, {
containerWidget1: ["wm.Container", {"_classes":{"domNode":["wmdialogcontainer","MainContent"]},"autoScroll":true,"height":"100%","horizontalAlign":"left","padding":"5","verticalAlign":"top","width":"100%"}, {}, {
doorLiveForm1: ["wm.LiveForm", {"alwaysPopulateEditors":true,"fitToContentHeight":true,"height":"62px","horizontalAlign":"left","liveEditing":false,"margin":"4","verticalAlign":"top"}, {"onSuccess":"doorLivePanel1.popupLiveFormSuccess"}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"doorDojoGrid.selectedItem","targetProperty":"dataSet"}, {}]
}],
doorNameEditor1: ["wm.Text", {"caption":"DoorName","captionSize":"140px","changeOnKey":true,"dataValue":"","desktopHeight":"26px","emptyValue":"emptyString","formField":"doorName","height":"26px","width":"100%"}, {}],
lookup2: ["wm.Lookup", {"autoDataSet":false,"caption":"Block","captionSize":"140px","dataType":"com.servicelivedb.data.Block","dataValue":undefined,"desktopHeight":"26px","displayField":"blockName","formField":"block","height":"26px","width":"100%"}, {}, {
binding: ["wm.Binding", {}, {}, {
dataFieldWire: ["wm.Wire", {"source":"lookup2.liveVariable","targetProperty":"dataSet"}, {}],
wire: ["wm.Wire", {"expression":undefined,"source":"blockLiveVariable1","targetProperty":"dataSet"}, {}],
wire1: ["wm.Wire", {"expression":undefined,"source":"lookupBlocks.selectedItem","targetProperty":"defaultInsert"}, {}]
}]
}]
}]
}],
buttonBar1: ["wm.Panel", {"_classes":{"domNode":["dialogfooter"]},"border":"1,0,0,0","desktopHeight":"32px","enableTouchHeight":true,"height":"32px","horizontalAlign":"right","layoutKind":"left-to-right","mobileHeight":"40px","verticalAlign":"top","width":"100%"}, {}, {
doorSaveButton: ["wm.Button", {"caption":"Save","height":"100%","margin":"4"}, {"onclick":"doorLiveForm1.saveDataIfValid"}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"source":"doorLiveForm1.invalid","targetId":null,"targetProperty":"disabled"}, {}]
}]
}],
doorCancelButton: ["wm.Button", {"caption":"Cancel","height":"100%","margin":"4"}, {"onclick":"doorDialog.hide","onclick1":"doorLiveForm1.cancelEdit"}]
}]
}],
layoutBox1: ["wm.Layout", {"horizontalAlign":"left","verticalAlign":"top"}, {}, {
panel1: ["wm.Panel", {"height":"100%","horizontalAlign":"left","layoutKind":"left-to-right","verticalAlign":"top","width":"100%"}, {}, {
panel2: ["wm.Panel", {"height":"100%","horizontalAlign":"left","layoutKind":"left-to-right","verticalAlign":"top","width":"100%"}, {}, {
blockLivePanel1: ["wm.LivePanel", {"autoScroll":false,"horizontalAlign":"left","verticalAlign":"top"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"source":"blockDialog","targetId":null,"targetProperty":"dialog"}, {}],
wire1: ["wm.Wire", {"source":"blockLiveForm1","targetId":null,"targetProperty":"liveForm"}, {}],
wire2: ["wm.Wire", {"source":"blockDojoGrid","targetId":null,"targetProperty":"dataGrid"}, {}],
wire3: ["wm.Wire", {"source":"blockSaveButton","targetId":null,"targetProperty":"saveButton"}, {}]
}],
lookupProjects: ["wm.Lookup", {"caption":"Projects","dataType":"com.servicelivedb.data.Project","dataValue":undefined,"desktopHeight":"30px","displayField":"projectName","displayValue":"","height":"30px"}, {"onchange":"blockLiveVariable1"}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"lvProject","targetProperty":"dataSet"}, {}]
}]
}],
blockDojoGrid: ["wm.DojoGrid", {"columns":[{"show":false,"field":"blockId","title":"BlockId","width":"100%","align":"right","formatFunc":"","mobileColumn":false},{"show":true,"field":"blockName","title":"BlockName","width":"100%","align":"center","formatFunc":"","editorProps":{"restrictValues":true},"mobileColumn":false},{"show":false,"field":"PHONE COLUMN","title":"-","width":"100%","align":"left","expression":"\"<div class='MobileRowTitle'>BlockName: \" + ${blockName} + \"</div>\"\n","mobileColumn":true},{"show":false,"field":"project.projectName","title":"Project.projectName","width":"100%","displayType":"Text","align":"left","formatFunc":""}],"dsType":"com.servicelivedb.data.Block","height":"100%","margin":"4"}, {"onCellDblClick":"blockLivePanel1.popupLivePanelEdit"}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"blockLiveVariable1","targetProperty":"dataSet"}, {}]
}]
}],
blockGridButtonPanel: ["wm.Panel", {"desktopHeight":"32px","enableTouchHeight":true,"height":"32px","horizontalAlign":"right","layoutKind":"left-to-right","mobileHeight":"40px","verticalAlign":"top","width":"100%"}, {}, {
blockNewButton: ["wm.Button", {"caption":"New","margin":"4"}, {"onclick":"blockLivePanel1.popupLivePanelInsert"}],
blockUpdateButton: ["wm.Button", {"caption":"Update","margin":"4"}, {"onclick":"blockLivePanel1.popupLivePanelEdit"}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"source":"blockDojoGrid.emptySelection","targetId":null,"targetProperty":"disabled"}, {}]
}]
}],
blockDeleteButton: ["wm.Button", {"caption":"Delete","margin":"4"}, {"onclick":"blockLiveForm1.deleteData"}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"source":"blockDojoGrid.emptySelection","targetId":null,"targetProperty":"disabled"}, {}]
}]
}]
}]
}]
}],
panel3: ["wm.Panel", {"height":"100%","horizontalAlign":"left","layoutKind":"left-to-right","verticalAlign":"top","width":"100%"}, {}, {
doorLivePanel1: ["wm.LivePanel", {"autoScroll":false,"horizontalAlign":"left","verticalAlign":"top"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"source":"doorDialog","targetId":null,"targetProperty":"dialog"}, {}],
wire1: ["wm.Wire", {"source":"doorLiveForm1","targetId":null,"targetProperty":"liveForm"}, {}],
wire2: ["wm.Wire", {"source":"doorDojoGrid","targetId":null,"targetProperty":"dataGrid"}, {}],
wire3: ["wm.Wire", {"source":"doorSaveButton","targetId":null,"targetProperty":"saveButton"}, {}]
}],
lookupBlocks: ["wm.Lookup", {"caption":"Block","dataType":"com.servicelivedb.data.Block","dataValue":undefined,"desktopHeight":"30px","displayField":"blockName","displayValue":"","height":"30px"}, {"onchange":"doorLiveVariable1"}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"blockLiveVariable1","targetProperty":"dataSet"}, {}]
}]
}],
doorDojoGrid: ["wm.DojoGrid", {"columns":[{"show":false,"field":"doorId","title":"DoorId","width":"80px","align":"right","formatFunc":"","mobileColumn":false},{"show":true,"field":"doorName","title":"DoorName","width":"100%","align":"center","formatFunc":"","editorProps":{"restrictValues":true},"mobileColumn":false},{"show":false,"field":"PHONE COLUMN","title":"-","width":"100%","align":"left","expression":"\"<div class='MobileRowTitle'>DoorName: \" + ${doorName} + \"</div>\"\n","mobileColumn":true},{"show":false,"field":"block.blockId","title":"Block.blockId","width":"80px","displayType":"Number","align":"right","formatFunc":""},{"show":false,"field":"block.blockName","title":"Block.blockName","width":"100%","displayType":"Text","align":"left","formatFunc":""}],"dsType":"com.servicelivedb.data.Door","height":"100%","margin":"4"}, {"onCellDblClick":"doorLivePanel1.popupLivePanelEdit"}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"doorLiveVariable1","targetProperty":"dataSet"}, {}]
}]
}],
doorGridButtonPanel: ["wm.Panel", {"desktopHeight":"32px","enableTouchHeight":true,"height":"32px","horizontalAlign":"right","layoutKind":"left-to-right","mobileHeight":"40px","verticalAlign":"top","width":"100%"}, {}, {
doorNewButton: ["wm.Button", {"caption":"New","margin":"4"}, {"onclick":"doorLivePanel1.popupLivePanelInsert"}],
doorUpdateButton: ["wm.Button", {"caption":"Update","margin":"4"}, {"onclick":"doorLivePanel1.popupLivePanelEdit"}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"source":"doorDojoGrid.emptySelection","targetId":null,"targetProperty":"disabled"}, {}]
}]
}],
doorDeleteButton: ["wm.Button", {"caption":"Delete","margin":"4"}, {"onclick":"doorLiveForm1.deleteData"}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"source":"doorDojoGrid.emptySelection","targetId":null,"targetProperty":"disabled"}, {}]
}]
}]
}]
}]
}]
}]
}]
};

DBlockDoorPg.prototype._cssText = '';
DBlockDoorPg.prototype._htmlText = '';